package com.emmy.walnut.model;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.Index;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

/**
 * @ClassName Label
 * @Description TODO
 * @Author zhouxuan
 * @Date 2020/02/04 12:11
 * @Version 1.0
 */
@Entity
public class Label {

    @PrimaryKey(autoGenerate = true)
    @NonNull
    private int id;

    @ColumnInfo
    private String labelName;

    @ColumnInfo
    private boolean isCustomize;

    @ColumnInfo
    @Nullable
    private String username;

    public Label(String labelName, boolean isCustomize, @Nullable String username) {
        this.labelName = labelName;
        this.isCustomize = isCustomize;
        this.username = username;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLabelName() {
        return labelName;
    }

    public void setLabelName(String labelName) {
        this.labelName = labelName;
    }

    public boolean isCustomize() {
        return isCustomize;
    }

    public void setCustomize(boolean customize) {
        isCustomize = customize;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
